Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Config.InsecureSkipTimeVerify not being respected #303

Merged
merged 1 commit into from
Jul 16, 2024

Conversation

adotkhan
Copy link
Contributor

This PR fixes an issue where server cert expiry is verified even though Config.InsecureSkipTimeVerify is set to true.

It seems that this issue has come about after the uTLS sync with Go 1.21, where the upstream crypto/tls has moved the code to verify server cert expiry above the InsecureSkipVerify check.

@gaukas gaukas self-requested a review July 16, 2024 03:47
Copy link
Contributor

@gaukas gaukas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the nice catch! Currently uTLS has inadequate test coverage which leads to bug risks as such.

@gaukas
Copy link
Contributor

gaukas commented Jul 16, 2024

If no more edits are going to be made on this pull request, I will be merging it by the end of day. Let me know before that if you want me to hold @adotkhan.

@gaukas gaukas merged commit 206f659 into refraction-networking:master Jul 16, 2024
6 checks passed
@adotkhan adotkhan deleted the time-skip-verify branch July 16, 2024 16:02
@adotkhan
Copy link
Contributor Author

Thanks for the quick review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants